package org.springblade.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;
import org.springblade.core.tool.api.R;
import org.springblade.system.dto.ProjectManageDTO;
import org.springblade.system.entity.ProjectManage;
import org.springblade.system.vo.ProjectManageVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;


public interface IProjectManageService extends BaseService<ProjectManage> {

	/**
	 * 分页
	 * @param pageCommand
	 * @param page
	 * @return
	 */
	IPage<ProjectManageVO> managePage(ProjectManageDTO pageCommand, IPage<ProjectManageVO> page);
	/**
	 *
	 * @param entity
	 * @return
	 */
	Long add(ProjectManage entity);


	/**
	 * 删除
	 * @param ids
	 * @return
	 */
	boolean removeByid(List<Long> ids);

	/**
	 * 修改
	 * @param entity
	 * @return
	 */
	boolean edit(ProjectManage entity);


	R<Object> upload(Integer type, MultipartFile file) throws IOException;
}
